package com.yxq.mdt.app.modules.spike.model;


import com.yxq.mdt.app.base.RespBase;
import com.yxq.mdt.app.modules.spike.bean.SpikeBean;
import com.yxq.mdt.app.modules.spike.bean.SpikeGoodsBean;
import com.yxq.mdt.app.net.API;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface SpikeApi {

    /**
     * 秒杀场次数据
     *
     * @return
     */
    @GET(API.HOST_BASE_URL + "api/miaosha/list")
    Observable<RespBase<String>> list(@Query("access_token") String access_token);

    /**
     * 秒杀场次数据
     *
     * @return
     */
    @GET(API.HOST_BASE_URL + "api/miaosha/goods-list")
    Observable<RespBase<SpikeGoodsBean>> goodsList(@Query("access_token") String access_token, @Query("time") String time, @Query("page") int page);

}
